
				当前位置：
				<a href="<?php echo site_url('admin/category/index'); ?>" class="layui-btn layui-btn-sm fr">分类列表</a>
				<span class="layui-breadcrumb" lay-separator="/">
					<a href="<?php echo site_url('admin/category/index'); ?>">信息管理</a>
					<a><cite>添加分类</cite></a>
				</span>

				<fieldset class="layui-elem-field layui-field-title">
					<legend>添加分类</legend>
				</fieldset>
			 
				<form class="layui-form layui-form-pane" action="" method="post">
					<div class="layui-form-item">
						<label class="layui-form-label">所属分类</label>
						<div class="layui-input-inline">
							<select name="parent_id" lay-filter="parent_id" lay-verify="required">
								<option value="0">一级分类</option>
								<?php
								if (! empty($lists)):
									$parent_id = $this->uri->segment(4, 0);
									foreach ($lists as $key => $value):
								?>
								<option value="<?php echo $value['id']; ?>"<?php echo $parent_id == $value['id'] ? ' selected' : ''; ?>><?php echo str_repeat('&nbsp;', ($value['level'] - 1) * 4) , $value['name']; ?></option>
								<?php
									endforeach;
								endif;
								?>
							</select>
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">分类名称</label>
						<div class="layui-input-inline">
							<input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入分类名称" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">菜单</label>
						<div class="layui-input-inline">
							<input type="checkbox" name="nav" lay-skin="switch" lay-text="On|Off" title="开关" value="1">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">状态</label>
						<div class="layui-input-inline">
							<input type="checkbox" name="status" lay-skin="switch" lay-text="On|Off" title="开关" value="1" checked>
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">排序</label>
						<div class="layui-input-inline">
							<input type="number" name="sort" lay-verify="number" class="layui-input" min="1" value="10">
						</div>
						<div class="layui-form-mid layui-word-aux">值越小越靠前</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">网页标题</label>
						<div class="layui-input-block">
							<input type="text" name="meta_title" class="layui-input" value="">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">网页关键词</label>
						<div class="layui-input-block">
							<input type="text" name="meta_keywords" class="layui-input" value="">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">网页描述</label>
						<div class="layui-input-block">
							<input type="text" name="meta_description" class="layui-input" value="">
						</div>
					</div>

					<div class="layui-form-item">
						<div class="layui-input-block">
						<button class="layui-btn" lay-submit="" lay-filter="form-category">立即提交</button>
							<button type="reset" class="layui-btn layui-btn-primary">重置</button>
							<input type="hidden" name="type" value="0">
						</div>
					</div>
				</form>
